const NORMAL = {
  code: '00',
  text: '正常',
  name: 'NORMAL',
  type: 'primary'
}
const FIRST = {
  code: '10',
  text: '优先',
  name: 'FIRST',
  type: 'success'
}
const URGENT = {
  code: '20',
  text: '紧急',
  name: 'URGENT',
  type: 'warning'
}
const TodoLevelEnum = {
  '00': NORMAL,
  '10': FIRST,
  '20': URGENT,
  'NORMAL': NORMAL,
  'FIRST': FIRST,
  'URGENT': URGENT
}
const HANDING = {
  code: '00',
  text: '进行',
  name: 'HANDING',
  type: 'primary'
}
const COMPLETED = {
  code: '10',
  text: '完成',
  name: 'COMPLETED',
  type: 'success'
}
const APPROACHING_DEAD_LINE = {
  code: '20',
  text: '临近',
  name: 'APPROACHING_DEAD_LINE',
  type: 'warning'
}
const OVERTIME = {
  code: '30',
  text: '超时',
  name: 'OVERTIME',
  type: 'danger'
}
const TodoStatusEnum = {
  '00': HANDING,
  '10': COMPLETED,
  '20': APPROACHING_DEAD_LINE,
  '30': OVERTIME,
  'HANDING': HANDING,
  'COMPLETED': COMPLETED,
  'APPROACHING_DEAD_LINE': APPROACHING_DEAD_LINE,
  'OVERTIME': OVERTIME
}
const ENABLE = {
  code: '00',
  text: '启用',
  name: 'ENABLE',
  type: 'primary'
}
const LOCKED = {
  code: '10',
  text: '锁定',
  name: 'LOCKED',
  type: 'waring'
}
const BANNED = {
  code: '20',
  text: '禁用',
  name: 'BANNED',
  type: 'danger'
}
const GeneralStateEnum = {
  '00': ENABLE,
  '10': LOCKED,
  '20': BANNED,
  'ENABLE': ENABLE,
  'LOCKED': LOCKED,
  'BANNED': BANNED
}
const OTHER = {
  code: '00',
  text: '其他',
  name: 'OTHER',
  type: 'info'
}
const DEVELOPMENT = {
  code: '01',
  text: '开发',
  name: 'DEVELOPMENT',
  type: 'info'
}
const TEST = {
  code: '02',
  text: '测试',
  name: 'TEST',
  type: 'info'
}
const BUG = {
  code: '03',
  text: 'BUG',
  name: 'BUG',
  type: 'warning'
}
const DOCUMENT = {
  code: '04',
  text: '文档',
  name: 'DOCUMENT',
  type: 'info'
}
const OPERATION_AND_MAINTENANCE = {
  code: '05',
  text: '运维',
  name: 'OPERATION_AND_MAINTENANCE',
  type: 'info'
}
const TodoTypeEnum = {
  '00': OTHER,
  '01': DEVELOPMENT,
  '02': TEST,
  '03': BUG,
  '04': DOCUMENT,
  '05': OPERATION_AND_MAINTENANCE,
  'OTHER': OTHER,
  'DEVELOPMENT': DEVELOPMENT,
  'TEST': TEST,
  'BUG': BUG,
  'DOCUMENT': DOCUMENT,
  'OPERATION_AND_MAINTENANCE': OPERATION_AND_MAINTENANCE
}
export default {
  TodoLevelEnum,
  TodoStatusEnum,
  GeneralStateEnum,
  TodoTypeEnum,
  TodoLevels: [NORMAL, FIRST, URGENT],
  TodoStatus: [HANDING, COMPLETED, APPROACHING_DEAD_LINE, OVERTIME],
  GeneralStates: [ENABLE, LOCKED, BANNED],
  TodoTypes: [OTHER, DEVELOPMENT, TEST, BUG, DOCUMENT, OPERATION_AND_MAINTENANCE]
}
